
<div xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib"><h:form
	>
	<rich:panel styleClass="blue-panel">
		<ctg:status />
		<s:decorate id="wizar" template="/templates/wizard.xhtml">
			<ui:define name="step-title">
				<h:outputText value="#{messages['label.suggest.step.title.9']}" />
			</ui:define>
			<ui:define name="step-tip">
				<h:outputText value="#{messages['label.suggest.step.tip.9']}" />
			</ui:define>
			<ui:define name="step-form">
				<rich:fileUpload fileUploadListener="#{objektSuggest.processSlika}"
					maxFilesQuantity="10" listWidth="450" id="upload"
					immediateUpload="false" acceptedTypes="jpg, gif, png, bmp"
					allowFlash="false" reRender="slikaList">
					<a:support event="onuploadcomplete" reRender="slikaList" />
				</rich:fileUpload>
			</ui:define>
			<ui:define name="buttn-cancel">
				<h:commandButton styleClass="submit" immediate="true"
					value="#{objektSuggest.editMode?messages['label.objekt.input.button.update']:messages['label.objekt.input.button.register']}"
					action="#{objektSuggest.zapisiObjekt}" />
				<ctg:nbsp/>			
				<a:commandButton value="#{messages['label.input.cancel']}"
					action="end" immediate="true" />
			</ui:define>
			<ui:define name="buttn-prev">
				<a:commandButton value="#{messages['label.input.back']}"
					action="#{objektSuggest.previousStep}" reRender="wizardpanel" immediate="true" />
			</ui:define>
			<ui:define name="buttn-next">
				

			</ui:define>
			<ui:define name="step-entered-data">
				<br />
				<a:outputPanel id="slikaListPanel">
					<rich:dataGrid id="slikaList" var="slika" columns="4" width="100%"
						value="#{objektSuggest.uneseneSlike}"
						rowClasses="rowOdd,rowEven">
						<h:panelGrid>
							<s:graphicImage value="#{slika.sadrzaj}"
								alt="#{messages['label.image.alt']}">
								<s:transformImageSize width="105" height="75"
									maintainRatio="false" />
							</s:graphicImage>
							<br/>
							<a:commandLink styleClass="submit"
								value="#{messages['label.button.remove']}"
								action="#{objektSuggest.ukloniSliku(slika)}"
								reRender="wizardpanel" immediate="true" />
						</h:panelGrid>
					</rich:dataGrid>
				</a:outputPanel>
			</ui:define>
		</s:decorate>
	</rich:panel>

</h:form></div>